FROM php:7.2-apache
WORKDIR /
RUN apt-get update
RUN apt-get install -y --allow-unauthenticated git
RUN git clone https://gitee.com/Discuz/DiscuzX.git \
 && cd DiscuzX && git checkout -b v3.5 origin/v3.5 --
RUN rm -rf /var/www/html
RUN mv /DiscuzX/upload /var/www/html
RUN rm -rf /DiscuzX
RUN chmod 777 -R /var/www/html
RUN docker-php-ext-install mysqli